﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplicationJQueryUI.Demo03.Behaviour
{
    [TargetControlType(typeof(TextBox))]
    public class JQueryCalendarExtender : ExtenderControl
    {
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors(Control targetControl)
        {

            ScriptBehaviorDescriptor response = new ScriptBehaviorDescriptor("WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour",
                targetControl.ClientID);

            yield return response;
        }

        protected override IEnumerable<ScriptReference> GetScriptReferences()
        {
            yield return new ScriptReference("~/Demo03/Behaviour/JQueryCalendarExtenderBehaviour.js");

        }
    }
}